package com.cjy.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 
 * </p>
 *
 * @author cjy
 * @since 2024-08-24
 */
@Getter
@Setter
@TableName("goods")
public class Goods implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 商品id
     */
    @TableId(value = "gid", type = IdType.AUTO)
    private Integer gid;

    /**
     * 商品名
     */
    @TableField("gname")
    private String gname;

    /**
     * 商品类型
     */
    @TableField("gtype")
    private String gtype;

    /**
     * 商品价格
     */
    @TableField("price")
    private BigDecimal price;

    /**
     * 商品库存
     */
    @TableField("gnum")
    private Integer gnum;


}
